@if(!isset($pageName))<?php $pageName = 'index'?>@endif
        <!-- saved from url=(0066)http://www.17sucai.com/preview/300739/2016-01-04/idchip/index.html -->
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>{{ Config::get('site.title') }}</title>
    <link rel="stylesheet" type="text/css" href="{{asset('/css/reset.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('/css/nav.css')}}">
    <link rel="stylesheet" type="text/css" href="{{asset('/css/thems.css')}}">
    <script type="text/javascript" src="{{asset('/js/jquery-1.8.3.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js/js_z.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js/jquery.cxslide.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('/js/nav.js')}}"></script>
    @yield('style')
</head>

<body>
<!--头部-->
<div class="header clearfix">
    <div class="logo">
        <a href=""><img src="{{asset('/images/logo.png')}}" alt=""></a>
    </div>
    <div class="tel head_r">{{Config::get('site.about.mobile')}}</div>
</div>
<!--头部-->
<!--导航条-->
<div class="nav_bg" id='cssmenu' style="z-index: 999; ">
    <ul class="nav clearfix" style=" width: 1000px; margin: 0 auto;">
        <li @if('index' == $pageName) class="active" @endif><a href='{{url('/index')}}'>首页</a></li>
        <li class="line">&nbsp;</li>
        <li class='has-sub @if('about' == $pageName) active @endif '><a href='{{url('/about')}}'>关于我们</a>
            <ul>
                <li><a href='{{url('/about#company')}}'>公司简介</a></li>
                <li><a href='{{url('/about#leader')}}'>领导简介</a></li>
                <li><a href='{{url('/about#speech')}}'>领导致辞</a></li>
                <li><a href='{{url('/about#technical')}}'>技术团队</a></li>
                <li><a href='{{url('/about#honor')}}'>公司荣誉</a></li>
            </ul>
        </li>
        <li class="line">&nbsp;</li>
        <li @if('base' == $pageName) class="active" @endif><a href='{{url('/base')}}'>基地介绍</a></li>
        <li class="line">&nbsp;</li>
        <li class='has-sub @if('product' == $pageName) active @endif'><a href='{{url('/product')}}'>产品介绍</a>
            <ul>
                @foreach($nav_products as $item)
                    @if([] != $item['data'])
                        <li class='has-sub'><a href='#'>{{$item['name']}}</a>
                            <ul>
                                @foreach($item['data'] as $data)
                                    <li><a href="{{url('product/'.$data['id'])}}">{{$data['name']}}</a></li>
                                @endforeach
                            </ul>
                        </li>
                    @endif
                @endforeach
            </ul>
        </li>
        <li class="line">&nbsp;</li>
        <li class='has-sub @if('news' == $pageName) active @endif'><a href='{{url('/news')}}'>行业资讯</a>
            <ul>
                @foreach(Config::get('site.newsType') as $key=>$item)
                    <li><a href='{{url('/news/index/'.$key)}}'>{{$item}}</a></li>
                @endforeach
            </ul>
        </li>
        <li class="line">&nbsp;</li>
        <li @if('contact' == $pageName) class="active" @endif><a href='{{url('/contact')}}'>联系我们</a></li>
        <li class="line">&nbsp;</li>
    </ul>
</div>
<!--导航条-->
@yield('content')
        <!--底部-->
<div class="foot">
    <div class="foot_m">
        <div class="f_nav">
            <a href="{{url('index')}}">首页</a><em>|</em>
            <a href="{{url('about')}}">关于我们</a><em>|</em>
            <a href="{{url('base')}}">基地介绍</a><em>|</em>
            <a href="{{url('product')}}">产品介绍</a><em>|</em>
            <a href="{{url('news')}}">行业资讯</a><em>|</em>
            <a href="{{url('/contact')}}">联系我们</a>
        </div>
        <div class="f_logo">
            <a href=""><img src="{{asset('/images/logo_a.png')}}" alt=""></a>
        </div>
        <p>邮箱：{{Config::get('site.about.mail')}}</p>
        <p>联系电话：{{Config::get('site.about.tel')}}</p>
        <p>地址：{{Config::get('site.about.addr')}} </p>
        <div class="code"><img src="{{asset('/images/code.png')}}" alt=""><span>关注稻道农业</span></div>
    </div>
</div>
<!--底部-->
<script language="javascript">
    $(function () {
        //幻灯片
        var w_width = $(window).width();
        var w_banner = (1920 - w_width) / 2;
        $('.hot-event .event-item img').css('margin-left', '-' + w_banner + 'px');
        $('.develop li:last-child').css('margin-right', 0 + 'px');
        $('.news dl:nth-child(2n) dt').css('margin-left', 45 + 'px');
    })
</script>
@yield('js')
</body>
</html>